// 带*号header
function renderHeader (h, { column }) {
    return h('div', {
        'class': 'required',
        domProps: {
            innerHTML: column.title
        }
    })
}
export default function (instance) {
    return [
        {
            type: 'selection',
            width: 30,
            align: 'center'
        },
        {
            title: '序号',
            type: 'index',
            width: 35,
            align: 'center'
        },
        {
            title: '备案序号',
            slot: 'putrecSeqno',
            width: 60,
            align: 'center',
            renderHeader (h, { column }) {
                return h('div', {
                    'class': {
                        required: instance.ieFlag == 'E'
                    },
                    domProps: {
                        innerHTML: column.title
                    }
                })
            }
        },
        {
            title: '商品料号',
            slot: 'gdsMtno',
            width: 110,
            align: 'center',
            renderHeader
        },
        {
            title: '商品编码',
            slot: 'gdecd',
            width: 90,
            align: 'center',
            renderHeader
        },
        {
            title: '商品名称',
            slot: 'gdsNm',
            width: 100,
            align: 'center',
            renderHeader
        },
        {
            title: '规格型号',
            slot: 'gdsSpcfModelDesc',
            width: 140,
            align: 'center',
            renderHeader
        },
        {
            title: ' 币制',
            slot: 'dclCurrcd',
            width: 50,
            align: 'center',
            renderHeader
        },
        {
            title: '申报数量',
            slot: 'dclQty',
            width: 68,
            align: 'center',
            renderHeader
        },
        {
            title: '申报计量单位',
            slot: 'dclUnitcd',
            width: 90,
            align: 'center',
            renderHeader
        },
        {
            title: '法定数量',
            slot: 'lawfQty',
            width: 65,
            align: 'center',
            renderHeader
        },
        {
            title: '法定计量单位',
            slot: 'lawfUnitcd',
            width: 82,
            align: 'center'
        },
        {
            title: '第二法定数量',
            slot: 'secdLawfQty',
            width: 80,
            align: 'center'
        },
        {
            title: '法定第二计量单位',
            slot: 'secdLawfUnitcd',
            width: 103,
            align: 'center'
        },
        {
            title: '企业申报单价',
            slot: 'dclUprcAmt',
            width: 87,
            align: 'center',
            renderHeader
        },
        {
            title: '企业申报总价',
            slot: 'dclTotalAmt',
            width: 88,
            align: 'center',
            renderHeader
        },
        {
            title: '原产国(地区)',
            slot: 'natcd',
            width: 87,
            align: 'center',
            renderHeader
        },
        {
            title: '毛重',
            slot: 'grossWt',
            width: 40,
            align: 'center'
        },
        {
            title: '净重',
            slot: 'netWt',
            width: 40,
            align: 'center'
        },
        {
            title: '最终目的国(地区)',
            slot: 'destinationNatcd',
            width: 112,
            align: 'center',
            renderHeader
        },
        {
            title: '征免方式',
            slot: 'lvyrlfModecd',
            width: 65,
            align: 'center',
            renderHeader
        },
        {
            title: '单耗版本号',
            slot: 'ucnsVerno',
            width: 72,
            align: 'center'
        }
    ]
}
